package cn.ncupyh;

public class Example17 {
    public static void main(String[] args) {
        int[] arr = new int[5];
        for (int i = 0; i < arr.length; i++) {
            try {
                System.out.println(" " + arr[i]);
            } catch (Exception e) {
                System.out.println("出异常类" + e.getMessage());
            System.out.println("程序继续");
            } finally {
                System.out.println("释放资源");
            }
        }
    }
}
